//
//  BIZConsultRecordsCell.m
//  biz
//
//  Created by LXL on 2017/7/7.
//  Copyright © 2017年 jieshuibao. All rights reserved.
//

#import "BIZConsultRecordsCell.h"
#import "BIZConsultRecordModel.h"

@interface BIZConsultRecordsCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UIView *redView;

@end
@implementation BIZConsultRecordsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setConsultRecordModel:(BIZConsultRecordModel *)consultRecordModel {
    _consultRecordModel = consultRecordModel;
    self.titleLabel.text = consultRecordModel.question;
    self.contentLabel.text = consultRecordModel.answer;
    self.dateLabel.text = [NSDate stringFromTimestamp:consultRecordModel.quDate];
    if ([consultRecordModel.red isEqualToString:@"0"]) {
        self.redView.hidden = NO;
    } else {
        self.redView.hidden = YES;
    }
}

@end
